package com.cmower.baeldung.string2;

import org.apache.commons.lang3.RandomStringUtils;

public class RandomStringUtilsTest {
    public static void main(String[] args) {
int length = 6;
// 字母
boolean useLetters = true;
// 不使用数字
boolean useNumbers = false;
String generatedString = RandomStringUtils.random(length, useLetters, useNumbers);

System.out.println(generatedString);
    }
}
